{extend name="main/index" /}
{block name="main"}
<style>
    th,td{
        text-align: center;
    }
</style>
<div class="content-page">
    <div class="content">
        <table class="table table-hover bg-white-1">
            <tr>
                <th>角色Id</th>
                <th>角色名</th>
                <th>角色权限</th>
                <th>操作</th>
            </tr>
            {volist name="data" key="k" id="v"}
            <tr>
                <td>{$v['id']}</td>
                <td>{$v['name']}</td>
                <td>{:implode($v['per'],'/')}</td>
                <td>
                    <a href="{:url('users/look/'.$v['id'])}" class="btn btn-xs btn-default ">查看角色权限</a>
                    <a href="{:url('users/Peradd/'.$v['id'])}" class="btn btn-xs btn-info ">分配权限</a>
                </td>
            </tr>
            {/volist}
            </table>
    </div>
</div>

{/block}